<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#propdef-text-box-edge">
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#propdef-text-box-trim">
<link rel="match" href="text-box-trim-ruby-start-001-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.spacer {
  height: 40px;
  background: lightgray;
}
.target {
  font-family: Ahem;
  font-size: 40px;
  line-height: 1;
  ruby-position: under;
  text-box-trim: end;
  text-box-edge: text;
}
rt {
  /* The Ruby annotation positioning is UA-dependent. In order to ref-test the
     trimming of parts above the ascent, hide the Ruby annotation. */
  color: transparent;
}
</style>
<div class="spacer"></div>
<div class="target">A <ruby>BASE<rt>RUBY</rt></ruby> B</div>
<div class="spacer"></div>
